import React, { FC, useContext } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import Title from '../_components/Title/Title';
import FormItem from '../_components/FormItem/FormItem';
import Lv from '../_components/Lv/Lv';
import { ApplySettledInContext } from '../ApplySettledInContext';
export interface IProps extends ICompProps {}
AgencyOrAgent.defaultProps = {} as Partial<IProps>;
function AgencyOrAgent(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('AgencyOrAgent', className);
    const {formRules} = useContext(ApplySettledInContext)

    return (
        <RootView className={localClassName} style={style}>
            <Title>机构或代理人</Title>
            <FormItem
                name="agencyName"
                label="名称"
                placeholder="请输入"
                rules={formRules.agencyName}></FormItem>
            <FormItem name="agentName" label="姓名" placeholder="请输入" rules={formRules.agentName}></FormItem>
            <FormItem name="agentPosition" label="职位" placeholder="请输入" rules={formRules.agentPosition}></FormItem>
            <FormItem
                name="agentPhoneNumber"
                label="手机号"
                placeholder="请输入"
                rules={formRules.phoneNumber}></FormItem>
            <View style={{ height: '15px' }}></View>
            <Lv label="营业执照或艺术家授权及作品发送至邮箱" value="发送至邮箱：19999209@Gmail"></Lv>
        </RootView>
    );
}
export default React.memo(AgencyOrAgent as FC<IProps>);
const RootView = styled(View)`
    &.AgencyOrAgent {
        margin-bottom: 80px;
    }
`;
